import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

const app = createApp(App)

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/icon/iconfont.js'
import '@/assets/icon/iconfont.css'
import '@/assets/base.scss'
app.use(ElementPlus)

import VueCookies from 'vue-cookies'

/* 自定义的工具 */
import Request from '@/utils/Request'
import Message from '@/utils/Message'
import Api from '@/utils/Api'
import Confirm from '@/utils/Confirm'
import Verify from '@/utils/Verify'
app.config.globalProperties.Request = Request
app.config.globalProperties.Message = Message
app.config.globalProperties.Api = Api
app.config.globalProperties.Confirm = Confirm
app.config.globalProperties.Verify = Verify

/* 自定义的组件 */
import Dialog from '@/components/Dialog.vue'
app.component('Dialog', Dialog)

app.use(router)

app.mount('#app')
